var t = getApp();

Page({
    data: {},
    onLoad: function(t) {
        t.id && this.setData({
            id: t.id
        }), this.getData();
    },
    taplist: function(t) {
        console.log(t);
        var a = t.currentTarget.dataset.ind, o = this.data.list;
        o[a].select = !o[a].select, this.setData({
            list: o
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var a = this, o = t.getNetAddresss("plugin.group-code.api.group-code.my-group-code-statistic");
        t._postNetWork({
            url: o,
            data: {
                id: a.data.id
            },
            success: function(t) {
                var o = t.data;
                if (1 == o.result) {
                    console.log(o);
                    for (var s = 0; s < o.data.list.data.length; s++) o.data.list.data[s].select = !1;
                    a.setData({
                        list: o.data.list.data,
                        datas: o.data.data
                    });
                } else wx.showToast({
                    title: o.msg,
                    icon: "none"
                }), console.log(o.msg);
            }
        });
    }
});